package com.yx1996.management.Bean;


import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import lombok.Data;
import org.springframework.stereotype.Component;

/**
 * User类
 */
//@Getter
//@Setter
//@ToString
@Data//实现自动生成方法
@Component//声明注解 声明后Spring就可以根据该声明找到并自动装配这个对象
public class User extends BaseRowModel {

    @ExcelProperty(index = 0, value = "id")
    private String id;
    @ExcelProperty(index = 1, value = "username")
    private String username;
    @ExcelProperty(index = 2, value = "password")
    private String password;
    @ExcelProperty(index = 3, value = "email")
    private String email;
    @ExcelProperty(index = 4, value = "adress")
    private String adress;
    @ExcelProperty(index = 5, value = "phonenumber")
    private String phonenumber;


}
